package org.bean;

import java.util.Date;
import java.util.List;

/**
 * @author : DengYing
 * @CreateDate : 2017年8月14日 下午5:36:52
 * @Description ：账号信息
 */
public class AccountInfo {

	private String uid;
	private String language;
	private int channelId;
	private int channelAppId;
	private String imei;
	private String device;
	private String osType;
	private String osVersion;
	private String clientVersion;
	private boolean admin;
	private Date createDate;
	private String ip;
	private Date lastOnlineTime;
	private Date lastOfflineTime;
	private int state;
	private String platform;
	private String phoneNumber;
	private String gameServerId;
	private List<TempRewardDTO> tempRewards;

	public String getUid() {
		return uid;
	}

	public void setUid(String uid) {
		this.uid = uid;
	}

	public String getLanguage() {
		return language;
	}

	public void setLanguage(String language) {
		this.language = language;
	}


	public String getImei() {
		return imei;
	}

	public void setImei(String imei) {
		this.imei = imei;
	}

	public String getDevice() {
		return device;
	}

	public void setDevice(String device) {
		this.device = device;
	}

	public String getOsType() {
		return osType;
	}

	public void setOsType(String osType) {
		this.osType = osType;
	}

	public String getOsVersion() {
		return osVersion;
	}

	public void setOsVersion(String osVersion) {
		this.osVersion = osVersion;
	}

	public boolean isAdmin() {
		return admin;
	}

	public void setAdmin(boolean admin) {
		this.admin = admin;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public String getIp() {
		return ip;
	}

	public Date getLastOnlineTime() {
		return lastOnlineTime;
	}

	public void setLastOnlineTime(Date lastOnlineTime) {
		this.lastOnlineTime = lastOnlineTime;
	}

	public Date getLastOfflineTime() {
		return lastOfflineTime;
	}

	public void setLastOfflineTime(Date lastOfflineTime) {
		this.lastOfflineTime = lastOfflineTime;
	}

	public int getState() {
		return state;
	}

	public void setState(int state) {
		this.state = state;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public String getPlatform() {
		return platform;
	}

	public AccountInfo setPlatform(String platform) {
		this.platform = platform;
		return this;
	}

	

	public int getChannelId() {
		return channelId;
	}

	public void setChannelId(int channelId) {
		this.channelId = channelId;
	}

	public int getChannelAppId() {
		return channelAppId;
	}

	public void setChannelAppId(int channelAppId) {
		this.channelAppId = channelAppId;
	}

	public String getPhoneNumber() {
		return phoneNumber;
	}

	public void setPhoneNumber(String phoneNumber) {
		this.phoneNumber = phoneNumber;
	}

	public String getGameServerId() {
		return gameServerId;
	}

	public void setGameServerId(String gameServerId) {
		this.gameServerId = gameServerId;
	}

	public List<TempRewardDTO> getTempRewards() {
		return tempRewards;
	}

	public void setTempRewards(List<TempRewardDTO> tempRewards) {
		this.tempRewards = tempRewards;
	}

	public String getClientVersion() {
		return clientVersion;
	}

	public void setClientVersion(String clientVersion) {
		this.clientVersion = clientVersion;
	}

	@Override
	public String toString() {
		return "AccountInfo [uid=" + uid + ", language=" + language + ", channelId=" + channelId + ", channelAppId="
				+ channelAppId + ", imei=" + imei + ", device=" + device + ", osType=" + osType + ", osVersion="
				+ osVersion + ", admin=" + admin + ", createDate=" + createDate + ", ip=" + ip + ", lastOnlineTime="
				+ lastOnlineTime + ", lastOfflineTime=" + lastOfflineTime + ", state=" + state + ", platform="
				+ platform + ", phoneNumber=" + phoneNumber + ", gameServerId=" + gameServerId + ", tempRewards=" + tempRewards + "]";
	}
	
}
